package org.jeecg.modules.demo.crm.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.*;
import org.jeecg.common.constant.ProvinceCityArea;
import org.jeecg.common.util.SpringContextUtils;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.jeecg.modules.demo.crm.annotation.FileField;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: 项目报价表
 * @Author: jeecg-boot
 * @Date:   2025-06-18
 * @Version: V1.0
 */
@Data
@TableName("c_project_quote")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="c_project_quote对象", description="项目报价表")
public class CProjectQuote implements Serializable {
    private static final long serialVersionUID = 1L;

	/**id*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "id")
    private String id;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
	/**项目ID*/
	@Excel(name = "项目ID", width = 15, dictTable = "c_project_application", dicText = "project_name", dicCode = "id")
	@Dict(dictTable = "c_project_application", dicText = "project_name", dicCode = "id")
    @ApiModelProperty(value = "项目ID")
    private String projectId;
	/**子项目ID*/
	@Excel(name = "子项目ID", width = 15, dictTable = "c_sub_project", dicText = "sub_project_name", dicCode = "id")
	@Dict(dictTable = "c_sub_project", dicText = "sub_project_name", dicCode = "id")
    @ApiModelProperty(value = "子项目ID")
    private String subProjectId;
	/**合同价*/
	@Excel(name = "合同价", width = 15)
    @ApiModelProperty(value = "合同价")
    private BigDecimal contractPrice;
	/**含税价格*/
	@Excel(name = "含税价格", width = 15)
    @ApiModelProperty(value = "含税价格")
    private BigDecimal taxInclusivePrice;
	/**税率*/
	@Excel(name = "税率", width = 15)
    @ApiModelProperty(value = "税率")
    private BigDecimal taxRate;
	/**报价文件*/
	@Excel(name = "报价文件", width = 15)
    @ApiModelProperty(value = "报价文件")
    @FileField // AOP 监听文件数据，存入文件表
    private String quotationFile;

    /**施工计划（天）*/
    @Excel(name = "施工计划（天）", width = 15)
    @ApiModelProperty(value = "施工计划（天）")
    private BigDecimal constructionPlan;
	/**状态*/
	@Excel(name = "状态", width = 15, dicCode = "quotes_status")
	@Dict(dicCode = "quotes_status")
    @ApiModelProperty(value = "状态")
    private String status;
    /**备注*/
    @Excel(name = "备注", width = 15)
    @ApiModelProperty(value = "备注")
    private String remark;
    /**合同价是否含税价*/
    @Excel(name = "合同价是否含税价", width = 15,replace = {"是_Y","否_N"} )
    @ApiModelProperty(value = "合同价是否含税价")
    private java.lang.String taxIncluded;
    /**审核人*/
    @Excel(name = "审核人", width = 15, dictTable = "sys_user", dicText = "username", dicCode = "id")
    @Dict(dictTable = "sys_user", dicText = "username", dicCode = "id")
    @ApiModelProperty(value = "审核人")
    private String reviewUserId;
    /**审核时间*/
    @Excel(name = "审核时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "审核时间")
    @TableField(updateStrategy = FieldStrategy.IGNORED)//空值也会修改
    private Date reviewTime;
    /**审核描述*/
    @Excel(name = "审核描述", width = 15)
    @ApiModelProperty(value = "审核描述")
    private String reviewDescription;
    /**提交人*/
    @Excel(name = "提交人", width = 15, dictTable = "sys_user", dicText = "username", dicCode = "id")
    @Dict(dictTable = "sys_user", dicText = "username", dicCode = "id")
    @ApiModelProperty(value = "提交人")
    private String userId;

    /**需求id*/
    @Excel(name = "需求id", width = 15, dictTable = "c_additional_request", dicText = "title", dicCode = "id")
    @Dict(dictTable = "c_additional_request", dicText = "title", dicCode = "id")
    @ApiModelProperty(value = "需求id")
    private String additionalId;
}
